package com.hzqy.persistence.dao.flight;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.flight.FlightInformationVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class FlightInformationDao extends PersistenceDao<FlightInformationVo, Integer> {

    protected final Logger LOG = LoggerFactory.getLogger(getClass());

    public int selectFlightInformationCount(FlightInformationVo flightInformationVo) {
        return getSqlSession().selectOne(this.getNamespace()+"selectFlightInformationCount",flightInformationVo);
    }

    public List<FlightInformationVo> selectFlightInformationList(Map<String, Object> map) {
        return getSqlSession().selectList(this.getNamespace()+"selectFlightInformationList",map);
    }
}
